﻿using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace NTQOnlineExam.Services.EntityFW.Entity
{
    public class Section
    {
        public int SectionId { get; set; }
        public string SectionName { get; set; }
        public string Description { get; set; }
        public int TermId { get; set; }
        public int Order { get; set; }
    }

    public class SectionMap : EntityTypeConfiguration<Section>
    {
        public SectionMap()
        {
            this.HasKey(t => t.SectionId);
            this.Property(t => t.SectionId).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
            this.ToTable("Section");
        }
    }
}



